package com.ruoyi.merchantStatistics.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.merchantStatistics.domain.MerchantStatisticsWithdrawal;
import com.ruoyi.merchantStatistics.mapper.MerchantStatisticsWithdrawalMapper;
import com.ruoyi.merchantStatistics.service.IMerchantStatisticsWithdrawalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现
 * 
 * @author ruoyi
 * @date 2019-05-07
 */
@Service
public class MerchantStatisticsWithdrawalServiceImpl implements IMerchantStatisticsWithdrawalService
{
	@Autowired
	private MerchantStatisticsWithdrawalMapper statisticsWithdrawalMapper;

	/**
     * 查询信息
     * 
     * @param id ID
     * @return 信息
     */
    @Override
	public MerchantStatisticsWithdrawal selectStatisticsWithdrawalById(Long id)
	{
	    return statisticsWithdrawalMapper.selectStatisticsWithdrawalById(id);
	}
	
	/**
     * 查询列表
     * 
     * @param statisticsWithdrawal 信息
     * @return 集合
     */
	@Override
	public List<MerchantStatisticsWithdrawal> selectStatisticsWithdrawalList(MerchantStatisticsWithdrawal statisticsWithdrawal)
	{
	    return statisticsWithdrawalMapper.selectStatisticsWithdrawalList(statisticsWithdrawal);
	}
	
    /**
     * 新增
     * 
     * @param statisticsWithdrawal 信息
     * @return 结果
     */
	@Override
	public int insertStatisticsWithdrawal(MerchantStatisticsWithdrawal statisticsWithdrawal)
	{
	    return statisticsWithdrawalMapper.insertStatisticsWithdrawal(statisticsWithdrawal);
	}
	
	/**
     * 修改
     * 
     * @param statisticsWithdrawal 信息
     * @return 结果
     */
	@Override
	public int updateStatisticsWithdrawal(MerchantStatisticsWithdrawal statisticsWithdrawal)
	{
	    return statisticsWithdrawalMapper.updateStatisticsWithdrawal(statisticsWithdrawal);
	}

	/**
     * 删除对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteStatisticsWithdrawalByIds(String ids)
	{
		return statisticsWithdrawalMapper.deleteStatisticsWithdrawalByIds(Convert.toStrArray(ids));
	}
	
}
